package com.joysuch.wwyt.mh.storage;


import com.joysuch.wwyt.core.exception.ApiBusinessException;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface IMonitorPointDataService {

    List<MonitorPointData> historyVals(Long tenantId, String orgCode, String tag, String startTime, String endTime, Integer flag);

    Optional<MonitorPointData> realTimeVal(Long tenantId, String orgCode, String tag);

    List<MonitorPointData> getRealTimeVals(Long tenantId, String orgCode, List<String> tags);

    void monitorPointDataBackup(HttpServletResponse response, Date startTime, Date endTime) throws ApiBusinessException;

    boolean getMonitorPointBackupFileSize(Date startTime, Date endTime) throws ApiBusinessException;
}
